package com.bytter.ext.uril.businessservice.controller;

import com.bytter.ext.uril.businessservice.service.MongoDemoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author zhangcz
 * @title: MongoDemoController
 * @projectName bytter-ext-util
 * @description: TODO
 * @date 2020/4/3016:47
 */
@RestController
@RequestMapping("/mongodemo")
public class MongoDemoController {

    @Autowired
    private MongoDemoService mongoDemoService;

    @PostMapping("/add")
    public String add(){
        mongoDemoService.add();
        return "ok";
    }
}
